﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="wucTop10TheoLoai.ascx.cs" Inherits="CungMuaC5.WebUC.wucTop5TheoLoai" %>
<style type="text/css">


    .style1
    {
        width: 290px;
        height: 320px;
    }
    .style4
    {
        width: 135px;
        height: 43px;
    }
    .style5
    {
        width: 211px;
        height: 43px;
    }
</style>

<asp:DataList ID="DataListTop10" runat="server" DataKeyField="MaKM">
    <ItemTemplate>
        <table 
            
            
            
            style="border: thin groove #008000; padding: 2px; margin: 4px; background-color: #99FF99;">
            <tr>
                <td align="center" colspan="2" style="height: 40px">
                    <asp:Label ID="Label1" runat="server" Font-Bold="True" Font-Size="Medium" 
                        Text='<%# Eval("TenKM") %>'></asp:Label>
                </td>
            </tr>
            <tr>
                <td align="center" colspan="2" 
                    style="background-color: #808080; width: 280px; height: 170px;">
                    <asp:ImageButton ID="ImageButton2" runat="server" Height="170px" 
                        ImageUrl='<%# Eval("HinhAnh", "~/Images/KhuyenMai/{0}") %>' 
                        PostBackUrl='<%# Eval("MaKM", "~/Products/ProductDetail.aspx?makm={0}") %>' 
                        Width="280px" />
                </td>
            </tr>
            <tr>
                <td align="center" class="style4" style="background-color: #EAEAEA">
                    <asp:Label ID="Label2" runat="server" Font-Bold="True" Font-Size="Large" 
                        ForeColor="#FF3300" Text='<%# Eval("DonGiaMoi", "{0} đ") %>'></asp:Label>
                </td>
                <td align="center" class="style5" 
                    style="background-color: #EAEAEA; height: 30px; width: 140px;">
                    <asp:Label ID="Label3" runat="server" Font-Size="Large" Font-Strikeout="True" 
                        Text='<%# Eval("DonGiaCu", "{0}đ") %>'></asp:Label>
                </td>
            </tr>
        </table>
    </ItemTemplate>
</asp:DataList>


